jQuery(document).ready(function() {
 
jQuery('#logo_button').click(function() {
 formfield = jQuery('#logo_image').attr('name');
 tb_show('', 'media-upload.php?type=image&amp;TB_iframe=true');
 
 
 window.send_to_editor = function(html) {
 imgurl = jQuery('img',html).attr('src');
 jQuery('#logo_image').val(imgurl);
 tb_remove();
}
 
 return false;
 
});
 


jQuery('#favicon_button').click(function() {
 formfield = jQuery('#favicon_image').attr('name');
 tb_show('', 'media-upload.php?type=image&amp;TB_iframe=true');
 
 window.send_to_editor = function(html) {
 imgurl = jQuery('img',html).attr('src');
 jQuery('#favicon_image').val(imgurl);
 tb_remove();
}
 
 
 return false;
});
 

jQuery('#showcase_button').click(function() {
 formfield = jQuery('#showcase_image').attr('name');
 tb_show('', 'media-upload.php?type=image&amp;TB_iframe=true');
 
 window.send_to_editor = function(html) {
 imgurl = jQuery('img',html).attr('src');
 jQuery('#showcase_image').val(imgurl);
 tb_remove();
}
 
 
 return false;
});
 


 
});